
kmpkg_from_gitee(
        OUT_SOURCE_PATH SOURCE_PATH
        REPO kumo-hub/tomlplusplus
        REF v${VERSION}
        SHA512 84cfe68184efc4aa2fbe82c118a3629680a9f5ec07cdcde2e18099254b4a794cf17c129feac8e9c8dd3cb7e20431f3494b9f2641ea2112c4f07958626bef66ad
        HEAD_REF master
        PATCHES
        fix-android-fileapi.patch
)


kmpkg_configure_meson(
    SOURCE_PATH "${SOURCE_PATH}"
    OPTIONS
        -Dgenerate_cmake_config=false
        -Dbuild_tests=false
        -Dbuild_examples=false
)

kmpkg_install_meson()
kmpkg_fixup_pkgconfig()

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
kmpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
